﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/MasterPage_admin.master"
    AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="admin_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuHai" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <h2>
        Thay đổi Password</h2>
    <br />
    <table class="style1">
        <tr>
            <td class="style2" style="width: 200px;">
                Mật khẩu củ:
            </td>
            <td>
                <asp:TextBox ID="TBPassOld" runat="server" Height="25px" MaxLength="100" TextMode="Password"
                    ValidationGroup="changepass" Width="160px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TBPassOld"
                    Display="Dynamic" ErrorMessage="Mật khẩu củ không được bỏ trống" SetFocusOnError="True"
                    ValidationGroup="changepass"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Mật khẩu mới:
            </td>
            <td>
                <asp:TextBox ID="TBPassNew" runat="server" Height="25px" MaxLength="100" TextMode="Password"
                    ValidationGroup="changepass" Width="160px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TBPassNew"
                    Display="Dynamic" ErrorMessage="Mật khẩu mới không được bỏ trống" SetFocusOnError="True"
                    ValidationGroup="changepass"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="TBPassOld"
                    ControlToValidate="TBPassNew" Display="Dynamic" ErrorMessage="Mật khẩu mới trùng mật khẩu củ"
                    Operator="NotEqual" SetFocusOnError="True" ValidationGroup="changepass"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Nhập Lại Mật khẩu Mới
            </td>
            <td>
                <asp:TextBox ID="TBPassConfrim" runat="server" Height="25px" MaxLength="100" TextMode="Password"
                    ValidationGroup="changepass" Width="160px"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TBPassNew"
                    ControlToValidate="TBPassConfrim" Display="Dynamic" ErrorMessage="Mật khẩu mới không trùng khớp"
                    SetFocusOnError="True" ValidationGroup="changepass"></asp:CompareValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TBPassConfrim"
                    Display="Dynamic" ErrorMessage="Nhập lại mật khẩu mới" SetFocusOnError="True"
                    ValidationGroup="changepass"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" align=center>
                <br />
                <asp:Button ID="BChangepass" runat="server" OnClick="BChangepass_Click" Text="Thay Đổi"
                    ValidationGroup="changepass" BackColor="#3399FF" BorderStyle="Solid" 
                    Height="30px" />
            </td>
        </tr>
    </table>
    </asp:Content>
